package org.jingle.sketch.component
{
	public class Point
	{
		public var x:int;
		public var y:int;
		
		public function Point(x:int, y:int)
		{
			this.x = x;
			this.y = y;
		}
		
		public function plus(p:Point): Point {
			return new Point(x + p.x, y + p.y);				
		}
		
		public function minus(p: Point): Point {
			return new Point(x - p.x, y - p.y);		
		}
		
		public function toString(): String {
			return "(x:" +x + ", y:" + y + ")";
		}
	}
}